//
//  EBMUserSingle.h
//  eBondMall
//
//  Created by apple on 2020/4/22.
//  Copyright © 2020 zhaoshijie. All rights reserved.
//

#import "EBMBaseUserSingle.h"


@interface EBMUserSingle : EBMBaseUserSingle



#pragma mark --------------创建变量--------------

//  用户id
@property(nonatomic,strong)NSString *userId;

//  token
@property(nonatomic,strong)NSString *token;
//  设置密码需要的token
@property(nonatomic,strong)NSString *resetPwdToken;

//  是否需要设置密码
@property(nonatomic,strong)NSString *needChangePwd;

//  手机号码
@property(nonatomic,strong)NSString *account;

//  用户名
@property(nonatomic,strong)NSString *name;

//  qq
@property(nonatomic,strong)NSString *qq;

//  邮箱
@property(nonatomic,strong)NSString *mail;



//  im注册码
@property(nonatomic,strong)NSString *imCode;

//  0:内部用户，1:外部用户
@property(nonatomic,strong)NSNumber *memberType;

//  是否绑定微信
@property(nonatomic,strong)NSNumber *bindingWechat;





#pragma mark --------------方法--------------


/// 创建用户信息
+ (instancetype)shareUserSingle;


/// 获取弱应用的用户对象
+ (EBMUserSingle *)gainWeakUserSingle;


/// 判断是否登录
- (BOOL)isLogin;


/// 请求用户信息
/// @param successBlock 请求成功
- (void)requestDataInUserInformationWithSuccessBlock:(void(^)(void))successBlock;


/// 请求用户信息
/// @param successBlock 请求成功
/// @param loadView 加载位置
- (void)requestDataInUserInformationWithSuccessBlock:(void(^)(void))successBlock
                                            loadView:(UIView *)loadView;



@end


